package com.wcy.dao;

import com.wcy.entity.City;
import com.wcy.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @since 2021-04-30
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    List<User> queryAll(@Param("uphones") String uphones);

    int setPassword(@Param("password") String password,@Param("id")String id);

    int add(User user);

    List<City> queryCity(@Param("pid") int pid);

    int delUserById(@Param("id") String id);

    int delByUid(int uid);

    void addRid(@Param("uid")int uid,@Param("j")int j);

    List<User> selectById(int id);

    int updateUser(User user);

}
